<?php	
	die('script not work');
	error_reporting( 0 );
	
	require_once('config.php');
	include_once('function.php');			
		

	// Create connection
	$con = connectDB($host,$user,$pass,$db);		


	$total_quantity = 30;
	$left_quantity = 30;
	$status = 'active';

	$storage_array = array('A','B','C','D','E','F','G','H');

	foreach ($storage_array as $storage) 
	{
		$i = 1;

		while ($i <= 64) 
		{
			$name = $storage.$i;

			$sql = "INSERT INTO `storage`(`title`, `total_quantity`, `left_quantity`, `status`) VALUES ('$name',$total_quantity,$left_quantity,'$status')";							
	
			$result = mysqli_query($con, $sql);

			$insert_id = mysqli_insert_id($con);
			echo $insert_id."<br>";

			$i++;						
		}		
	}
		
	